﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;


namespace CTEA_INDIA
{
    public partial class MenuList : System.Web.UI.UserControl
    {
     

        protected void Page_Load(object sender, EventArgs e)
        {

           

            if (!IsPostBack)
            {
                if (Session["UserID"] != null)
                {
                    if (Session["login"] != null)
                    {
                        if (Session["UserTypeId"].ToString() == "1")//admin
                        {
                            liCreateTechnical.Visible = true;
                            liMyAdminTechProf.Visible = true;
                            liPendingCandidate.Visible = true;
                          
                           
                            liAddPRoduct.Visible = true;
                          
                            liHhireEquip.Visible = true;
                            liArtistInfo.Visible = true;
                            liProductionTeam.Visible = true;
                          
                            //liAudtionSheet.Visible = true;
                            liArtistPortfolio.Visible = true;
                        }
                        if (Session["UserTypeId"].ToString() == "4")
                        {
                            liCandidateProfile.Visible = true;
                            lienquiry.Visible = false;
                            
                        }
                        if (Session["UserTypeId"].ToString() == "3")
                        {

                            liCompanyProfile.Visible = true;
                           
                        }
                        if (Session["UserTypeId"].ToString() == "2")
                        {
                            
                                liMyAdminTechProf.Visible = true;
                             
                           
                           
                        }
                    }
                }
            }

        }
        public void SignOut(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();

            Session.RemoveAll();
            Session.Clear();
            Response.Redirect("Default.aspx");
            // lnkLogin.Visible = true;
            // lnkLogout.Visible = false;
        }
    }
}